package com.yxuan.springboot.service.impl;

import com.yxuan.springboot.mapper.UserLoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.yxuan.springboot.model.UserLogin;
import com.yxuan.springboot.service.UserLoginService;

/**
 * 
 * @author zchao
 *    UserLogin业务层实现类
 * @date 2023-05-09 08:56:37
 */
@Service
@Transactional
public class UserLoginServiceImpl extends BaseServiceImpl<UserLogin> implements UserLoginService {

    @Autowired
    private UserLoginMapper userLoginMapper;


    @Override
    public UserLogin findByOpenId(String openId) throws Exception {

        return userLoginMapper.findByOpenId(openId);
    }

    //    微信登录
    @Override
    public Integer Wxlogin(UserLogin login) throws Exception {
        return userLoginMapper.Wxlogin(login);
    }



}
